package com.jeff.studyclient.util;

import java.awt.Color;
import java.awt.Font;

/**
 * 
 * @author syed.mustaffa
 * @author zhu.jianhua
 */
public class StyleUtils {
	
	final public static Font BASE_FONT = new Font("Arial", Font.BOLD, 12);

	final public static Font TEXT_FONT;
	
	final public static String ISO_CODE;
	
	static {
		ISO_CODE = LocaleUtil.getLocaleISO();

		//we are using English, so else will never get called.
//		if (LocaleUtil.isEN()) {
			TEXT_FONT = BASE_FONT;
//		} else {
//			String fontName = Settings.get().getProperty("font." + ISO_CODE);
//			TEXT_FONT = new Font(fontName, Font.BOLD, 12);
//		}
	}
	final public static Font DEFAULT_FONT = TEXT_FONT.deriveFont(Font.PLAIN);
	final public static Font TEXT_FONT_SMALL = TEXT_FONT.deriveFont(11f);
	final public static Font DEFAULT_FONT_SMALL = DEFAULT_FONT.deriveFont(11f);
	final public static Font TEXT_FONT_TABLE = DEFAULT_FONT_SMALL;

	final public static Color SELECTED_COLOR = Color.decode("#348017");
	final public static Color CHANGED_BACKCOLOR = Color.decode("#FFFF99");
	final public static Color CHANGED_FORECOLOR = Color.decode("#800000");
	final public static Color BUTTON_FORECOLOR = Color.BLACK;
	final public static Color BUTTON_VIP_FORECOLOR = Color.RED;
	final public static Color BUTTON_DISABLED_FORECOLOR = Color.GRAY;
	final public static Color BUTTON_ENABLE_BACKCOLOR = Color.decode("#FF800D");
	final public static Color GOAL_FORE_COLOR = Color.BLUE;
	final public static Color DIALOG_CONTENT_BACKGROUND = Color.WHITE;
	final public static Color COLUMN_BORDERCOLOR = Color.GRAY;
	final public static Color COLUMN_FOCUS_BORDERCOLOR = Color.GRAY;
	final public static Color INPUT_BACKGROUND = Color.WHITE;
	final public static Color INPUT_FOCUS_BACKGROUND = Color.decode("#99FF99");
	final public static Color INPUT_ERROR_BACKGROUND = Color.decode("#FF8E8E");
	final public static Color INPUT_DISABLED_BACKGROUND = Color.decode("#EEEEEE");
	final public static Color ODDSCHANGE_CONTENT_BACKGROUND = Color.decode("#FFFFCC");
	final public static Color AVERAGE_PRICE_FOREGROUND = new Color(0, 100, 0);
	final public static Color BETCOUNT_FOREGROUND = new Color(160, 82, 45);
	final public static Color POSITIVE_FOREGROUND = new Color(46, 139, 87);
	final public static Color NEGATIVE_FOREGROUND = Color.RED;
	final public static Color ODDS_FOREGROUND = new Color(72, 61, 139);
	final public static Color ODDS_CHANGED_FOREGROUND = Color.decode("#FF00FF");
	final public static Color ODDS_PAUSED_FOREGROUND = Color.RED;
	final public static Color ODDSOFFSET_CLICK_FOREGROUND = Color.decode("#33AA00");
	final public static Color ODDSOFFSET_FOREGROUND = Color.BLACK;
	final public static Color DRAW_TEAM_FOREGROUND = Color.MAGENTA;
	final public static Color HANDICAP_FOREGROUND = new Color(72, 61, 139);
	final public static Color ACTIVE_DANGER_CANCEL_BACKGROUND = Color.RED;
	final public static Color LINE_SWAPPER_BACKGROUND = Color.decode("#FFCC00");
	final public static Color LINE_REMOVAL_BACKGROUND = Color.RED;
	final public static Color SP_HEADER_FOCUS = Color.decode("#006600");
	final public static Color LIGHER_GRAY = Color.decode("#EEEEEE");
	final public static Color LIGHT_BLUE = new Color(21, 155, 200);

	final public static Font BUTTON_FONT_BOLD = BASE_FONT;
	final public static Font BUTTON_FONT = BASE_FONT.deriveFont(Font.PLAIN);
	final public static Font BUTTON_FONT_SMALL = BUTTON_FONT.deriveFont(11f);
	final public static Font SP_BUTTON_FONT = TEXT_FONT_SMALL;
	final public static Font LABEL_FONT = BASE_FONT.deriveFont(Font.PLAIN);
	final public static Font LABEL_FONT_BOLD = BASE_FONT;
	final public static Font LABEL_FONT_SMALL = LABEL_FONT.deriveFont(10f);
	final public static Font LABEL_FONT_BIG = TEXT_FONT.deriveFont(14f);
	final public static Font TABLE_HEADER_FONT = /*BASE_FONT*/TEXT_FONT;
	final public static Font COMBOBOX_FONT_BOLD = BASE_FONT;
	final public static Font INPUT_FONT_BOLD = BASE_FONT;

	private static Color newMarketBackground = Color.LIGHT_GRAY;
	private static Color openMarketBackground = Color.WHITE;
	private static Color suspendedMarketBackground = new Color(200, 190, 240);
	private static Color closedMarketBackground = Color.LIGHT_GRAY;
	private static Color settledMarketBackground = Color.LIGHT_GRAY;
	private static Color closeableMarketBackground = Color.YELLOW;
	private static Color earlyEventBackground = Color.WHITE;
	private static Color todayEventBackground = Color.WHITE;
	private static Color liveEventBackground = Color.decode("#FFCCCC");

	public static final Color TABLE_HEADER_BACKCOLOR = Color.BLACK;
	public static final Color TABLE_HEADER_FORECOLOR = Color.WHITE;
	public static final Color TABLE_HEADER_SORT_FORECOLOR = Color.decode("#66CCFF");
	public static final Color TABLE_HEADER_SORT_BACKCOLOR = new Color(196, 227, 244);
	public static final Color TABLE_CELL_BORDER_COLOR = Color.LIGHT_GRAY;
	public static final Color TABLE_CELL_BACKCOLOR = Color.WHITE;
	public static final Color TABLE_CELL_ALT_BACKCOLOR = new Color(240, 240, 240);
	public static final Color TABLE_SELECTION_BACKCOLOR = Color.LIGHT_GRAY;
	public static final Color TABLE_SELECTION_FORECOLOR = Color.BLUE;
	
	public static final Color TICKER_DISABLED_BACKCOLOR = Color.decode("#EEEEEE");
	public static final Color TICKER_TOTAL_BACKCOLOR =  Color.decode("#D4FFD4");
	public static final Color LEAGUE_HEADER_BACKCOLOR = new Color(100, 220, 100);
	public static final Color ONLINELIST_MARKETTYPE_BACKCOLOR = Color.decode("#DCDBFE");
	public static final Color ONLINELIST_SUMFIELD_BACKCOLOR = Color.decode("#99FFCD");
	public static final Color ONLINELIST_TOTAL_BACKCOLOR = Color.LIGHT_GRAY;
	public static final Color ONLINELIST_CURRENTSCORE_BACKCOLOR = Color.decode("#FFCC33");

	
}
